reftests: Use colors without rounding errors
authorBenjamin Otte <otte@redhat.com>
Thu, 16 Sep 2021 18:26:26 +0000 (20:26 +0200)
committerBenjamin Otte <otte@redhat.com>
Thu, 16 Sep 2021 21:59:37 +0000 (23:59 +0200)
Color values must be divisible by 15 to be convertible into U8 and U16
values with the same result. 0x80 is not one of these values, so switch
it to 0x99.

testsuite/reftests/label-attribute-preference.ref.ui
testsuite/reftests/label-attribute-preference.ui

index 6ef8fdc0cdbb11bfae8e3f838fd3ab1cf5ea7fcf..942bf5e8d60fe54670e5fa6a79d5c706653038a2 100644 (file)
@@ -6,12 +6,12 @@
       <object class="GtkLabel" id="label1">
         <property name="label" translatable="yes">Hello linky World</property>
         <attributes>
-          <attribute name="foreground" value="#000080000000" start="1" end="3"></attribute>
+          <attribute name="foreground" value="#000099990000" start="1" end="3"></attribute>
           <attribute name="foreground" value="#ffff00000000" start="3" end="8"></attribute>
           <attribute name="foreground" value="#0000ffff0000" start="8" end="9"></attribute>
           <attribute name="foreground" value="#00000000ffff" start="9" end="10"></attribute>
-          <attribute name="foreground" value="#ffff80008000" start="10" end="14"></attribute>
-          <attribute name="foreground" value="#8000ffff8000" start="14" end="16"></attribute>
+          <attribute name="foreground" value="#ffff99999999" start="10" end="14"></attribute>
+          <attribute name="foreground" value="#9999ffff9999" start="14" end="16"></attribute>
           <attribute name="underline" value="True" start="6" end="11"></attribute>
         </attributes>
       </object>
index 9f1f53d17c3671838b945cacf838455441d85a71..da2b8dde31ac103aae89f6ca1c2622e45a94eb91 100644 (file)
@@ -5,10 +5,10 @@
     <child>
       <object class="GtkLabel" id="label1">
         <property name="use-markup">1</property>
-        <property name="label" translatable="yes">H&lt;span color=&quot;#008000&quot;&gt;ell&lt;/span&gt;o &lt;a href=&quot;http://example.com&quot;&gt;l&lt;span color=&quot;#00FF00&quot;&gt;in&lt;/span&gt;ky&lt;/a&gt; &lt;span color=&quot;#80FF80&quot;&gt;Worl&lt;/span&gt;d</property>
+        <property name="label" translatable="yes">H&lt;span color=&quot;#009900&quot;&gt;ell&lt;/span&gt;o &lt;a href=&quot;http://example.com&quot;&gt;l&lt;span color=&quot;#00FF00&quot;&gt;in&lt;/span&gt;ky&lt;/a&gt; &lt;span color=&quot;#99FF99&quot;&gt;Worl&lt;/span&gt;d</property>
         <attributes>
           <attribute name="foreground" value="#ffff00000000" start="3" end="8"></attribute>
-          <attribute name="foreground" value="#ffff80008000" start="10" end="14"></attribute>
+          <attribute name="foreground" value="#ffff99999999" start="10" end="14"></attribute>
         </attributes>
       </object>
     </child>